#!/bin/bash

PINARRAY=()
for file in sum.txt nu
do
  md5sum $file &
  PINARRAY+=("$!")
done
wait ${PINARRAY[@]}
